home *** CD-ROM | disk | FTP | other *** search
- Path: btree.is.brooktree.com!usenet
- From: sasha@brooktree.com (Alex Bakaev)
- Newsgroups: comp.lang.c++
- Subject: Re: (HUGE) Help! This bug is killing me! Anyone have any ideas?
- Date: Wed, 10 Jan 1996 03:18:06 GMT
- Organization: Brooktree Corporation
- Message-ID: <4cvb42$q6l@btree.brooktree.com>
- References: <4cjmbt$gaf@maverick.tad.eds.com> <30f254ad.95008793@hector>
- NNTP-Posting-Host: komissar.is.brooktree.com
-
- Kenn@owl-uk.co.uk (Ken Nicolson) wrote:
-
- >fignet05.darrins@eds.com (Darrin Smith) wrote:
-
- [deleted]
-
- >>void main()
-
- >Well, the program is free to crash if you declare main like that, I
- >suppose, so the behaviour you are seeing could be consistent...
-
- Really ?
-
- >> ccun_detail *detail;
- >[snip!]
- >> found=fread(detail,sizeof(ccun_detail),1,infile);
-
- >No allocation of space for "detail". Go to the bottom of the class.
-
- >>Well I've spent 3 days now trying to figure out what is wrong with this
-
- >Three days you've spent? Are you sure you're in the right job?
- Should not have offended Mr. Perfect.
-
- >Crashing exiting a function is a sure sign that you've got a wayward
- >pointer crapping on the stack. This took me two minutes to find,
- >without even going near a C compiler.
-
- I am just guessing what you can do with a compiler...
-
- >I could spend ages commenting on the nightmarish C/C++ hybrid coding,
- >but I've got better things to do with my time.
-
- Well, that wasn't asked by the original question, so you better do
- those better things of yours instead of pointing out how great you
- are.
-
- >Ken
-
- Alex
-
-
-